package cn.healthlink.study.config;

import com.alibaba.nacos.api.annotation.NacosProperties;
import com.alibaba.nacos.api.config.ConfigType;
import com.alibaba.nacos.spring.context.annotation.config.EnableNacosConfig;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.context.annotation.Configuration;

/**
 * @author dengzhiyuan
 * @version 1.0
 * @time 2020/10/20 15:14
 */
@Configuration
@EnableNacosConfig(globalProperties = @NacosProperties(serverAddr = "127.0.0.1:8848"),readConfigTypeFromDataId=false)
@NacosPropertySource(dataId = "example",autoRefreshed = true,type= ConfigType.PROPERTIES)
public class NacosConfiguration {

}
